package j2024.j202407;

import java.util.Scanner;

public class j0731 {
    //false
    public static void main1(String[] args) {
        Scanner in = new Scanner(System.in);
        long x = in.nextLong();
        long i = 1;
        long count =1;
        long c = 1;
        long ii = i*2;

        while(count!=x){
            if(ii == c){
                i++;
                ii = i*2;
                c=1;
            }
            c++;
            count++;
        }
        System.out.println(i*i);
    }
    public static void main2(String[] args) {
        Scanner in = new Scanner(System.in);
        long x = in.nextLong();
        long a = (long) Math.sqrt(x);
        long mina = Math.abs(x-a*a);
        long b = a+1;
        long maxa = Math.abs(b*b-x);
        if(mina>maxa){
            System.out.println(b*b);
        }else {
            System.out.println(a*a);
        }
    }

    public static void main3(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int m = in.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = in.nextInt();
        }
        System.out.println(n/m+1);

    }
}
